<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
<title>通过记录详情</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1, user-scalable=no">
<link rel="stylesheet" href="/resources/weui/lib/weui.min.css">
<link rel="stylesheet" href="/resources/weui/css/jquery-weui.css">
<link rel="stylesheet" href="/resources/weui/css/demos.css">
</head>
<body ontouchstart>
	<header class='demos-header'>
		<h1 class="demos-title">门禁详情</h1>
	</header>
	<article class="weui-article">
		<p>
			<img src="https://image.wujiantao.cn/${accessRecord.pictureUrl}"
				alt="">
		</p>
	</article>
	<div class="weui-form-preview">
		<div class="weui-form-preview__bd">
			<c:if test="${accessRecord.type==1}">
				<div class="weui-form-preview__item">
					<label class="weui-form-preview__label">姓名</label> <span
						class="weui-form-preview__value">${accessRecord.student.name}</span>
				</div>
				<div class="weui-form-preview__item">
					<label class="weui-form-preview__label">性别</label> <span
						class="weui-form-preview__value">${accessRecord.student.sex == 1? "男" : "女"}</span>
				</div>
				<div class="weui-form-preview__item">
					<label class="weui-form-preview__label">学号</label> <span
						class="weui-form-preview__value">${accessRecord.student.studentNumber}</span>
				</div>
				<div class="weui-form-preview__item">
					<label class="weui-form-preview__label">专业</label> <span
						class="weui-form-preview__value">${accessRecord.student.major}</span>
				</div>
				<div class="weui-form-preview__item">
					<label class="weui-form-preview__label">班级</label> <span
						class="weui-form-preview__value">${accessRecord.student.className}</span>
				</div>
				<div class="weui-form-preview__item">
					<label class="weui-form-preview__label">宿舍号</label> <span
						class="weui-form-preview__value">${accessRecord.student.roomNumber}</span>
				</div>
			</c:if>
			<div class="weui-form-preview__item">
				<label class="weui-form-preview__label">门禁时间</label> <span
					class="weui-form-preview__value"><fmt:formatDate
						pattern="yyyy-MM-dd HH:mm:ss" value="${accessRecord.accessTime}" /></span>
			</div>

		</div>
	</div>

	<script src="/resources/weui/lib/jquery-2.1.4.js"></script>
	<script src="/resources/weui/lib/fastclick.js"></script>
	<script>
		$(function() {
			FastClick.attach(document.body);
		});
	</script>
	<script src="/resources/weui/js/jquery-weui.js"></script>
</body>
</html>